home *** CD-ROM | disk | FTP | other *** search
/ The AGA Experience 3 / AGA Experience Volume 3 (1997)(NFA - SAdENESS)[!].iso / software / docs / amigareport / bird.lha / control.rexx < prev    next >
Encoding:
OS/2 REXX Batch file  |  1995-12-07  |  1.0 KB  |  87 lines

  1. /* Mandtory ARexx comment */
  2.  
  3. /* 8-25-95 00:00 This program controlls the playing of iff files */
  4.  
  5. /* This is used in training the birds to talk */
  6.  
  7. /* the config should be no quickstart and 0 timeout */
  8.  
  9.  
  10.  
  11. do forever
  12.  
  13.      
  14.  
  15.      Address Command        /* DOS is getting the next command */
  16.  
  17.  
  18.  
  19.    
  20.  
  21.      date
  22.  
  23.      say "Wating til 9:00 am"
  24.  
  25.      'wait until 09:00'       /*first playing time in the morning */
  26.  
  27.      call play_4()
  28.  
  29.      date
  30.  
  31.      say "Waiting til 1:00 pm"
  32.  
  33.     'wait until 13:00'
  34.  
  35.     call play_4() 
  36.  
  37.    date
  38.  
  39.      say 'Waiting til 6:00 ' 
  40.  
  41.      'wait until 18:00'          /* wait until 6:00 pm    */
  42.  
  43.      call play_4()
  44.  
  45. end
  46.  
  47. return /program end */
  48.  
  49.  
  50.  
  51. play_4: procedure
  52.  
  53. /* Mandatory Rexx Coment */
  54.  
  55. /* October 3 1995 */
  56.  
  57. /* This is a do loop that plays songs.  */
  58.  
  59. /* The number of times is deterimned by the variable "SONGS" */
  60.  
  61. songs = 4
  62.  
  63.  
  64.  
  65. do count = 1 to songs
  66.  
  67.    address delitracker
  68.  
  69.    playpause
  70.  
  71.    say "Playing song" count
  72.  
  73.    address command
  74.  
  75.    wait 4 min
  76.  
  77.    address delitracker
  78.  
  79.    nextsong
  80.  
  81.    end
  82.  
  83. return
  84.  
  85.  
  86.  
  87.